From: Florian Müllner Date: Wed, 11 Aug 2021 20:54:11 +0000 (+0200) Subject: appMenu: Hide overview when activating apps X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~574^2^2~108 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b3861ca693891f90f553c365dbe2c59b626af872;p=gnome-shell.git appMenu: Hide overview when activating apps This is the expected behavior when activating a window or app. Until now we could rely on the menu being hidden in the overview, but as that is about to change, make sure the menu behaves as expected. Part-of: --- diff --git a/js/ui/appMenu.js b/js/ui/appMenu.js index 85c193bfe..3b757492e 100644 --- a/js/ui/appMenu.js +++ b/js/ui/appMenu.js @@ -39,6 +39,7 @@ var AppMenu = class AppMenu extends PopupMenu.PopupMenu { this._newWindowItem = this.addAction(_('New Window'), () => { this._app.open_new_window(-1); + Main.overview.hide(); }); this.addMenuItem(new PopupMenu.PopupSeparatorMenuItem()); @@ -126,6 +127,7 @@ var AppMenu = class AppMenu extends PopupMenu.PopupMenu { const label = appInfo.get_action_name(action); this._actionSection.addAction(label, event => { this._app.launch_action(action, event.get_time(), -1); + Main.overview.hide(); }); });